package org.xx.armory.io;

import java.net.URLStreamHandler;
import java.net.URLStreamHandlerFactory;

public class ClassPathURLStreamHandlerFactory
        implements URLStreamHandlerFactory {
    /**
     * {@inheritDoc}
     */
    @Override
    public URLStreamHandler createURLStreamHandler(
            String protocol
    ) {
        if ("classpath".equals(protocol)) {
            return new ClassPathURLStreamHandler();
        } else {
            return null;
        }
    }
}
